package com.xiaozhen.jt809;

import com.xiaozhen.jt809.server.TcpServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/13 16:01
 * @description:
 */
@SpringBootApplication(scanBasePackages = {"com.xiaozhen"},
        exclude = {DataSourceAutoConfiguration.class})
//@EnableDiscoveryClient
public class JT809TcpServerApp {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(JT809TcpServerApp.class, args);
        TcpServer JT809Server = context.getBean(TcpServer.class);
        JT809Server.runServer();
    }

}
